<?php slot('js_insideLoadFunction')?>
ADMIN_FORM.init();
<?php end_slot()?>
<div class="box-navigation">
	<?php echo $data['navigation']?>
</div>
<div class="clr"></div>
<div class="box-content">
	<form action="?action_name=<?php echo $data['action']?>" method="post" name="form_main" id="form_main">
		<?php echo $form['_csrf_token']?>
		<div class="clr"></div>
		<div class="box-content-main ">
			<div class="message"><?php echo empty($data['result'])?'':$data['result']?></div><div class="note">* is required.</div>
			<div class="clr"></div>
			<table class="table-list table-form" cellspacing="0" cellpadding="0" border="0">
				<tr class="class1">
					<td class="label"><?php echo __('label_cate_id',null,'faqs')?><span class="required">*</span></td>
					<td class="input">
						<?php echo $form['cate_id']->render(array('type'=>'hidden'));?>
						<select name="fcate" id="fcate" class="refer-to required" data-refer="Faqs_cate_id" data-require="selected">
							<?php echo html_entity_decode($data['cate_options'])?>
						</select>
						<span class="error" id="type_error"><?php echo __('selected', null, 'table_list')?></span>
					</td>
					
				</tr>
				
				<tr class="class1">
					<td class="label"><?php echo __('label_full_name',null,'faqs')?></td>
					<td class="input">
						<?php echo $form['full_name']->render(array('class'=>'form-text'))?>
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_email',null,'faqs')?></td>
					<td class="input">
						<?php echo $form['email']->render(array('class'=>'form-text' ))?>
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_phone_number',null,'faqs')?></td>
					<td class="input">
						<?php echo $form['phone_number']->render(array('class'=>'form-text' ))?>
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_location_city_id',null,'faqs')?></td>
					<td class="input">
						<?php echo $form['location_city_id']->render(array('class'=>'select-parent', 'data-child-id'=>'Faqs_location_district_id', 'data-update'=>'/admin/faqs/getDistrict', 'data-child-select'=>__('option_select', null, 'table_list')))?>
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_location_district_id',null,'faqs')?></td>
					<td class="input">
						<?php echo $form['location_district_id']->render(array('type'=>'hidden'))?>
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_title',null,'faqs')?><span class="required">*</span></td>
					<td class="input">
						<?php echo $form['title']->render(array('class'=>'form-text required',  'data-require'=> 'not-empty'))?>
						<span class="error" id="type_error"><?php echo __('not_empty', null, 'table_list')?></span>
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_question',null,'faqs')?><span class="required">*</span></td>
					<td class="input">
						<?php echo $form['question']->render(array('class'=>'required', 'data-require'=> 'not-empty'))?>
						<span class="error" id="type_error"><?php echo __('not_empty', null, 'table_list')?></span>
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_answer',null,'faqs')?></td>
					<td class="input">
						<?php echo $form['answer']->render(array('class'=>'ckeditor'))?>
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_tags',null,'faqs')?></td>
					<td class="input">
						<?php echo $form['tags']->render(array('class'=>'form-text'))?>
					</td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('is_enabled',null,'table_list')?></td>
					<td class="input"><?php echo $form['is_enabled']->render(array('class'=>'required'))?></td>
					
				</tr>
				<tr class="class1" style="background:#fff">
					<td class="label">&nbsp;</td>
					<td class="input"><input type="button" id="button_submit" name="button_submit" class="button" value="<?php echo $data['button_action']?>"/></td>
					
				</tr>
			</table>
		</div>
		<div class="clr"></div>
		<div class="control-back"><a href="<?php echo $data['redirect']?>" title="<?php echo __('control_back', null, 'table_list')?>" alt="<?php echo __('control_back', null, 'table_list')?>"><?php echo __('control_back', null, 'table_list')?></a></div>
	</form>
</div>